<?php

/* 
 * 好友邀请列表
 */

class InviteAction extends AdminAction{
    public function _initialize() {
        parent::_initialize();
    }
    public function index(){
        $pageRows = 15;
        $invite_db = M('email_invite_items');
        $count = $invite_db->count();
        import("ORG.Util.Page");
        $Page = new Page($count,$pageRows);
        $pageShow = $Page->show();
        $list = $invite_db->limit($Page->firstRow.','.$Page->listRows)->where($where)->order('id desc ')->select();
        
        $language_info = M('language')->field('id,name,name_cn')->select();
        $language = array();
        foreach($language_info as $k=>$v){
                 $language[$v['id']]=array(
                'name'      =>$v['name'],
                'name_cn'   =>$v['name_cn']
                );
        }

        $this->assign('pageShow', $pageShow);
        $this->assign('language',$language);
        $this->assign('list',$list);
        $this->display('index');
    }
}
